<?php
include("include/config.inc.php");
include("./bottom.php");
  if(isset($_REQUEST['waiter']))
  {
    $waiterVar = $_REQUEST['waiter'] ;
  }
  else
  {
  	$waiterVar = 0 ;
  }
  
  if(isset($_REQUEST['table']))
  {
    $tableVar = $_REQUEST['table'] ;
  }
  else
  {
  	$tableVar = 0 ;
  }
  if(isset($_REQUEST['tablePart']))
  {
    $tablePartVar = $_REQUEST['tablePart'] ;
  }
  else
  {
    $tablePartVar = 'A' ;
  }
  if($waiterVar==0 and $tableVar==0 )
  {
  	echo"<script>alert('please select table and waiter');</script>";
  	header("location:index.php");
  }
$smarty->assign('tableVar',$tableVar);
$smarty->assign('waiterVar',$waiterVar);
$smarty->assign('tablePartVar', $tablePartVar);
$smarty->display('pizzas.tpl');
?>